<!DOCTYPE HTML>
<html>
<head>
<!-- -------------------------------------------------------------------------------------------- -->
<!-- -------------------------------------------------------------------------------------------- -->
<!-- SETTINGS -->
<!-- -------------------------------------------------------------------------------------------- -->
<title>Bet on chope, sell your friend!</title>
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="description" LANG="en" content="Celibax is an online betting system. It will be possible to bet on anything with your friends.
            It was initially designed to bet on which of your friends would be the first to get laid, but you can also use it for sporting events, life events or whatever you can think of!
            You cannot play real money here, the Celibax money is the Chochoro and the shame of losing!">
<meta name="robots" content="index, follow">
<meta name="Revisit-after" content="10 days">
<meta name="Date-Creation-yyyymmdd" content="20071216">
<meta name="Date-Revision-yyyymmdd" content="20110104">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="expires" content="never">

<!-- -------------------------------------------------------------------------------------------- -->
<!-- -------------------------------------------------------------------------------------------- -->
<!-- LIB INCLUDES -->
<!-- -------------------------------------------------------------------------------------------- -->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="{{ STATIC_URL}}javascript/jquery.min1.7.2.js"></script>
<script type="text/javascript" src="{{ STATIC_URL}}javascript/extendAjaxForCSRF.js"></script>
<!-- the following include allow internet explorer to keep the same display than the other browser -->
<!--[if lt IE 10]>
	<script type="text/javascript" src="{{ STATIC_URL}}javascript/CSS3PIE.js"></script>
<![endif]-->


<!-- -------------------------------------------------------------------------------------------- -->
<!-- -------------------------------------------------------------------------------------------- -->
<!-- STYLE AND PAGE STRUCTURE INCLUDES -->
<!-- -------------------------------------------------------------------------------------------- -->
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL}}css/help.css">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL}}css/structure.css">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL}}css/help.css">
<script language="JavaScript" type="text/javascript" src="{{ STATIC_URL}}javascript/styleAndDiv.js"></script>
<script language="JavaScript" type="text/javascript" src="{{ STATIC_URL}}javascript/headerStructure.js"></script>

<!-- -------------------------------------------------------------------------------------------- -->
<!-- -------------------------------------------------------------------------------------------- -->
<!--WIDGETS, GRAPHS AND CHARTS-->
<!-- -------------------------------------------------------------------------------------------- -->
<!--To keep the number of connections to the server as low as possible, we will have only one request for all the tables and charts displaid in
the website. This request will be a post request in order to avoid proxy caching. The return of this request will be a dictionnary of jsons.
the entries for those jsons will be defined in each of the include ".js" but the internal content of them will be hard coded from the python source.
We will then apply a displaying function to each of the returned json. 
-->
<!-- -------------------------------------------------------------------------------------------- -->
<!-- We start by including a json collector which will gather all the require informations from the following includes.
It Mostly defines the global allJsonsRegistry variable witch is a list of couple (func_name_in_py, func_name_in_js)
the meaning of this couple is define in the next comment blocks-->
<script type="text/javascript" src="{{ STATIC_URL}}javascript/allJsonsCollector.js"></script>

<!-- -------------------------------------------------------------------------------------------- -->
<!-- now we set all the json we want. each include must register into the allJsonsRegistry variable:
- The name func_name_in_py of the pyhon function it calls in the python server code to generate the json.
  This function is required to have a single argument which is the player sendind the request
- The name func_name_in_js of the  function we will apply to the returned json
it also need to implement the function whose name is func_name_in_js-->
<script type="text/javascript" src="{{ STATIC_URL}}javascript/disaplayComments.js"></script>


<!-- -------------------------------------------------------------------------------------------- -->
<!--we then call the function dispatcher which will call the function func_in_py and apply the func_in_js to the json which is returned
for all the charts/table which have been registered.-->
<script type="text/javascript" src="{{ STATIC_URL}}javascript/allJsonsDispacher.js"></script>


<!-- -------------------------------------------------------------------------------------------- -->
<!-- -------------------------------------------------------------------------------------------- -->
<!-- INITIALISATION OF THE PAGE -->
<!-- -------------------------------------------------------------------------------------------- -->
<script type="text/javascript" src="{{ STATIC_URL}}javascript/coreOnLoad.js"></script>
<script type="text/javascript" src="{{ STATIC_URL}}javascript/submitUtils.js"></script>
<script type="text/javascript" src="{{ STATIC_URL}}javascript/helpOnLoad.js"></script>


</head>


<body>
    {% load argTemplates %}

    <!-- create the header-->
    <script language="JavaScript" type="text/javascript">makeHeader(
        'home',
        2,
        '{{user.username}}',
        '',
        0,//room type
        1,
        '{{STATIC_URL}}'
     );</script>
    <noscript> <p> Activez Javascript pour voir le menu !</p></noscript>

    <div class="section">
        <h1>Help and links</h1>
    </div>

    <div class="section">
        <h2>Rules</h2>
        <div class="myLeft2"> You will find a document with all the rules <a href="/rules/" target="_blank">here</a>. In brief, there are two types of room:
            <BR>&nbsp;<BR>
            <div style="font-weight:bold;">Probability market</div>
            <div>
                <ul class="myLeft2">
                    <li>A strategy is a bet on the assets. It takes the form the percentage you own of each type.</li>
                    <li>A fund is a strategy and a number of asset.</li>
                    <li>I can change the strategy of my fund. The new number of assets associated to my fund will be calculated so that the value of it remains constant.</li>
                    <li>A portfolio is a set of funds and the bank account. The fund associated to my strategy must represent at least 50&#37; of the value of my portofolio.</li>
                    <li>When an asset strikes, it pays a dividend to all the funds which are holding some of this asset. The asset is then removed from the market and the maket goes on.</li>
                </ul>
            </div>
            <div class="myLeft2">The prices change accordingly to the bet of the players. At any time, you can buy asset you estimate cheap and sell those you find too expensive.</div>
            <div class="myLeft2">When other players buy assets you are holding, the price increase and you become reacher. When other players sell assets you are holding, you beome poorer. Therefore you need to act first.</div>
        </div>
        <BR>&nbsp;<BR>
        <div class="myLeft" style="font-weight:bold;">Contract market</div>
        <BR>&nbsp;<BR>
        <div class="myLeft2">The bet is made through an exchange of contracts. A contract is the obligation for the seller to pay 100 chochoros to the buyer
        at expiry if the underlying event has occured at expiry. For instance, when buying a contract for 50 chochoros, you double down when the event happens.</div>
        <div class="myLeft">To exchange a contract, the buyer and the seller have to agree on a price through an order book.</div>
        
    </div>
    
   <div class="section">
        <h2>Comments</h2>
        <div class="comment_input">
            <textarea  id="id_comment_text" rows="3" cols="90" name="commentText" onkeypress="ifEnter(this,event,postComment);" ></textarea>
            <input type="submit" class="myRoundCorners" value="post" onclick="postComment()"></input>
        </div>
        <div class="display_comments_section" id="id_display_comments_section" name="display_comments_section"></div>
    </div>

    <div class="section">
        <h2>Friend sites</h2>
        <div>
            <ul class="myLeft2">
                <li>Parce que y a pas que les femmes dans vie: <a href="http://vins.dumonde.eu/" target="_blank">vins du monde</a>.</li>
                <li>The famous <a href="http://www.camptocamp.org/" target="_blank">camptocamp</a>. Un site qui monte!</li>
                <li>The famous jazman <a href="http://yoziq.posterous.com/" target="_blank">Lopez</a>.</li>
                <li><FONT face="Comic Sans MS"><i> Une touche de <a href="http://la-tellectuelle.blogspot.com/" target="_blank">feminit&#233;</a>.</i></FONT></li>
                <li> <a href="http://www.flickr.com/photos/janellecakes/" target="_blank">Yummi!</a>
                
            </ul> 
        </div>
    </div>
    
    <div class="section">
        <h2>Install your own Celibax</h2>
        <div class="myLeft2" style="display:block">
            <div>Celibax sources can be dowlowned <a href="http://code.google.com/p/celibax/source/checkout" target="_blank">here</a>.</div>
            <div>It is running with <a href="http://www.djangoproject.com/" target="_blank">Django</a> so you will have to install <a href="http://www.python.org/getit/" target="_blank">Python</a> first.</div>
            <div>For the registration, it uses the Djang extension <a href="https://bitbucket.org/ubernostrum/django-registration/src/27bccd108cde/docs/" target="_blank">Django-registration</a> and the web interface uses <a href="http://css3pie.com/" target="_blank">CSS3Pie</a>.</div>
            <div>To host your website, <a href="http://www.alwaysdata.com/" target="_blank">alwaysdaya.net</a> is very convenient (and free) for Django applications.</div>
        </div>
    </div>
    
    <div>
        <script language="JavaScript" type="text/javascript">footer()</script>
    </div>

</body>
</html>